<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

//需开启域名部署 url_domain_deploy = true 文档地址https://www.kancloud.cn/manual/thinkphp5/118039
Route::domain('api','api');//api子域名绑定到api模块
Route::domain('admin','admin');//admin子域名绑定到admin模块

Route::rule('/', 'index/index/index');

// 自动include所有route文件。
includeRouteFiles();
